package com.cf.r1003_ak;

import java.io.*;

public class e {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StreamTokenizer in = new StreamTokenizer(br);
        PrintWriter out = new PrintWriter(System.out);
        in.nextToken(); int t = (int) in.nval;
        while (t-- > 0) {
            in.nextToken(); int n = (int) in.nval;
            in.nextToken(); int m = (int) in.nval;
            in.nextToken(); int k = (int) in.nval;
            char duo;
            char shao;
            if (n >= m) {
                duo = '0';
                shao = '1';
            } else {
                duo = '1';
                shao = '0';
                int tmp = n;
                n = m;
                m = tmp;
            }
            if (n < k || n - m > k) {
                out.println(-1);
                continue;
            }
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < k; i++) {
                sb.append(duo);
                n--;
            }
            boolean flag = false;
            while (n > 0 && m > 0) {
                if (flag) {
                    sb.append(duo);
                    n--;
                    flag = false;
                } else {
                    sb.append(shao);
                    m--;
                    flag = true;
                }
            }
            while (n > 0) {
                sb.append(duo);
                n--;
            }
            while (m > 0) {
                sb.append(shao);
                m--;
            }
            out.println(sb.toString());
        }
        out.close();
        out.close();
        br.close();
    }

}
